<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta name="force-rendering" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="author" content="order by www.91084.com">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta name="applicable-device" content="pc,mobile">
    <meta name="MobileOptimized" content="width">
    <meta name="HandheldFriendly" content="true">
    <meta name="Robots" content="all">
    <title>我的个人博客</title>
    <meta name="keywords" content="小菜个人博客">
    <meta name="description" content="小菜个人博客">
    <link href="/css/index.css" rel="stylesheet">
</head>

<body>
@include('layout.header')

<div class="box">
    <div class="cont">
        <div class="infohd">
            <div class="info_tab"> <span class="on"><a href="/jiaocheng/" target="_blank">最新</a></span> <b class="line"></b> </div>
        </div>
        <div class="index_list clearfix">
            <ul class="clearfix">
                @foreach($news['data'] as $new)
                    <li>
                        <span>{{ date('Y-m-d',strtotime($new['created_at']))  }}</span>
                        <a href="{{ route('details').'?id='.$new['id'] }}" target="_blank">{{ $new['title']  }}</a>
                    </li>
                @endforeach

            </ul>
        </div>

        <div class="pages">
            <ul>

                <li>
                    <span class="pageinfo">
                        共 <strong>{{ $news['last_page']  }}</strong> 页
                           <strong>{{ $news['total'] }}</strong> 条记录
                    </span>
                </li>


                @if($news['total']>1)

                    @if($news['current_page']==1)
                    @else
                        <a  href="{{ $news['first_page_url']  }}">
                            <li >
                        <span class="pageinfo">
                             <strong > < </strong>
                        </span>
                            </li>
                        </a>
                    @endif

                @endif



                @for ($i = 1; $i <= $news['last_page']; $i++)
                    @if($news['current_page']==$i)

                    @else
                        <a  href="{{ $news['path']."?page=".$i  }}">
                            <li>
                            <span class="pageinfo">
                                    <strong > {{ $i }} </strong>
                            </span>
                            </li>
                        </a>
                    @endif

                @endfor

                @if($news['last_page']>$news['current_page'])
                    <a  href="{{ $news['next_page_url']  }}">
                    <li>
                    <span class="pageinfo">
                            <strong > > </strong>
                    </span>
                    </li>
                    </a>
                @endif


            </ul>

        </div>

    </div>
</div>
<div class="box">
    <div class="cont">
        <div class="infohd">
            <div class="info_tab"> <span class="on"><a href="/jishu/" target="_blank">最热</a></span> <b class="line"></b> </div>
        </div>
        <div class="index_list clearfix">
            <ul class="clearfix">

                @foreach($hots['data'] as $hot)
                    <li><span>{{ date('Y-m-d',strtotime($hot['created_at']))  }}</span>
                        <a href="{{ route('details').'?id='.$hot['id'] }}" target="_blank">{{ $hot['title']  }}</a>
                    </li>
                @endforeach

            </ul>
        </div>

        <div class="pages">
            <ul>

                <li>
                    <span class="pageinfo">
                        共 <strong>{{ $hots['last_page']  }}</strong> 页
                           <strong>{{ $hots['total'] }}</strong> 条记录
                    </span>
                </li>


                @if($hots['total']>1)
                    @if($hots['current_page']==1)

                    @else
                        <a  href="{{ $hots['first_page_url']  }}">
                            <li >
                        <span class="pageinfo">
                             <strong > < </strong>
                        </span>
                            </li>
                        </a>
                    @endif
                @else

                @endif



                @for ($i = 1; $i <= $hots['last_page']; $i++)
                    @if($hots['current_page']==$i)
{{--                        <li style="background: #ffcd36;color: #ffffff">--}}
{{--                        <span class="pageinfo">--}}
{{--                                <strong > {{ $i }} </strong>--}}
{{--                        </span>--}}
{{--                        </li>--}}
                    @else
                        <a  href="{{ $hots['path']."?page=".$i  }}">
                            <li>
                            <span class="pageinfo">
                                    <strong > {{ $i }} </strong>
                            </span>
                            </li>
                        </a>
                    @endif

                @endfor

                @if($hots['last_page']>$hots['current_page'])
                    <a  href="{{ $hots['next_page_url']  }}">
                        <li>
                    <span class="pageinfo">
                            <strong > > </strong>
                    </span>
                        </li>
                    </a>
                @endif


            </ul>

        </div>

    </div>
</div>


@include("layout.footer")

</body></html>
